import {getBanner} from "../api/index"


export default () => dispatch =>{
    getBanner().then(res=>{
        dispatch({
            type:"GET_Banner",
            payload:res.data.banners
        })
    })
}